<template>
  <div class="prescriptionFooter">
    <slot name="yipian-footer"> </slot>
    <div class="prescriptionFooter-footer">
      <div class="prescriptionFooter-a">
        <div class="prescriptionFooter-t">审核/调配：</div>
        <div class="prescriptionFooter-t">核对/发药:</div>
        <div class="prescriptionFooter-t">
          医师：{{ patientData ? patientData.doctor_name : "" }}
        </div>
        <div class="prescriptionFooter-t">
          金额： {{ patientData ? patientData.amount : 0.0 }} 元
        </div>
      </div>
      <div class="prescriptionFooter-b">
        <div class="prescriptionFooter-b-a">
          提示：此处方有效期为三天，请遵医嘱服药
        </div>
        <div class="prescriptionFooter-b-a">
          打印时间：{{ new Date() | dateFormat("yyyy-mm-dd HH:MM:SS") }}
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    patientData: {
      type: Object,
      default: () => {},
    },
  },
};
</script>

<style lang="scss" scoped>
@import "@/assets/scss/print/prescriptionFooter.scss";
</style>